/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.ka.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaaction.common.persistence.Page;
import com.kaaction.common.service.CrudService;
import com.kaaction.modules.ka.entity.KaSupplier;
import com.kaaction.modules.ka.dao.KaSupplierDao;

/**
 * 供应商Service
 * @author huanghaiming
 * @version 2017-06-14
 */
@Service
@Transactional(readOnly = true)
public class KaSupplierService extends CrudService<KaSupplierDao, KaSupplier> {

	public KaSupplier get(String id) {
		return super.get(id);
	}
	
	public List<KaSupplier> findList(KaSupplier kaSupplier) {
		return super.findList(kaSupplier);
	}
	
	public Page<KaSupplier> findPage(Page<KaSupplier> page, KaSupplier kaSupplier) {
		return super.findPage(page, kaSupplier);
	}
	
	@Transactional(readOnly = false)
	public void save(KaSupplier kaSupplier) {
		super.save(kaSupplier);
	}
	
	@Transactional(readOnly = false)
	public void delete(KaSupplier kaSupplier) {
		super.delete(kaSupplier);
	}

	public int getEqual(KaSupplier kaSupplier) {
		return super.dao.getEqual(kaSupplier);
	}
	
}